<template>
  <div class="container">
    <h3 class="title">
      {{data.hasTitle?data.title:"热门搜索"}}
    </h3>
    <div class="big_img" >
      <a :href="data.commonInfos[0].detailUrl">
        <el-image class="banner" :src="data.commonInfos[0].banner_pic" fit="cover"></el-image>
        <div class="big_desc">{{data.commonInfos[0].content}}</div>
      </a>
    </div>

    <el-row>
      <el-col :span="8" v-for="index in data.commonInfos.length-1" v-bind:key="index">
        <el-link :href="data.commonInfos[index].detailUrl">
          <el-image :src="data.commonInfos[index].cover" fit="cover" class="cover"/>
          <div class="name">{{data.commonInfos[index].name}}</div>
        </el-link>
      </el-col>
    </el-row>
  </div>
</template>

<script>
  export default {
    name: "Splite3BigView",
    props: {
      "data": Object
    },
    methods: {}
  }
</script>

<style lang="scss">
  @import "assets/Common";

  .title {
    font-size: 16px;
    line-height: 40px;
  }

  .el-link {
    width: 100%;
    display: block;
  }

  .el-image {
    width: 100%;
    height: 400px;
  }

  .el-row {
    .el-col {
      margin-top: 10px;
    }

    .el-col {
      padding-left: 10px;
    }
  }

  .name {
    margin-top: 10px;
    color: #333333;
    font-size: 18px;
  }

  .big_img {
    width: $--window-width;

    a {
      display: block;
      position: relative;
    }

    .big_desc {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 50px;
      line-height: 50px;
      background-color: rgba(0, 0, 0, 0.3);
      text-align: left;
      color: white;
      padding-left: 16px;
      font-size: 14px;
    }

    .banner {
      width: $--window-width;
      margin: 0 auto;
      text-align: center;
      height: 300px;
    }
  }


</style>
